package com.mxpio.boot.autoconfigure.message;

import com.mxpio.boot.autoconfigure.security.SecurityApiAutoConfiguration;
import com.mxpio.boot.message.api.MessageApiConfiguration;
import com.mxpio.framework.common.CommonConstant;
import com.mxpio.framework.common.vo.ModuleVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(MessageApiConfiguration.class)
@AutoConfigureAfter(SecurityApiAutoConfiguration.class)
@Import(MessageApiConfiguration.class)
@Slf4j
public class MessageApiAutoConfiguration {

    public MessageApiAutoConfiguration(){
        log.info("[AutoConfiguration==>]:Message Api Module Loading");
        CommonConstant.addModule(new ModuleVO("Message Api","消息模块 Api"));
    }
}
